Skip to content

Conversation

@lars-erik
Copy link

I just had a play with this. Sadly the sheet I attempted to read probably have too low resolution, including three-note chords, so the result was a total catastrophe. 🤣 (Happy to provide outputs, but won't post IP here)

In any case, I thought I'd just PR these two changes I had to make for it to go through the whole process.

I'll be moving on to other libraries to see if I can use my crappy source material, but good luck with this one! Will be looking for updates for sure! 👍

i = 0; j = 0;
while(i < len(staff_notes)):
if (staff_notes[i].rec.x > staffs[j].x and j < len(staffs)):
if (j < len(staffs) and staff_notes[i].rec.x > staffs[j].x):
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got index out of range, so moved the index check first.

time += duration

midi.addNote(track,channel,pitch,time,4,0)
# midi.addNote(track,channel,pitch,time,4,0)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got pitch undefined here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants